
import Vue from 'vue'
import Vuei18n from 'vue-i18n'
import Zh from '@/langun/zh'
import En from '@/langun/en'
import ElemengZh from 'element-ui/lib/locale/lang/zh-CN'
import ElemengEn from 'element-ui/lib/locale/lang/en'
Vue.use(Vuei18n)
export default new Vuei18n({
  locale: localStorage.getItem('lang') || 'zn',
  messages: {
    en: {
      ...En,
      ...ElemengEn
    },
    zn: {
      ...Zh,
      ...ElemengZh
    }
  }
})
